package com.star.starp.api;

import com.star.starp.service.intf.UserService;
import com.star.starp.vo.R;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/***
 * @className: UserController
 * @author: Alex
 * @date: 2022/1/2 17:53
 */
@RestController
@RequestMapping("/api/user/")
@Api(value = "用户操作",tags = "用户操作")
public class UserController {
    @Autowired
    private UserService service;

    @GetMapping("checkPhone.do")
    public R checkPhone(String phone){
        return service.checkPhone(phone);
    }

    @GetMapping("checkUserName.do")
    public R checkUserName(String username){
        return service.checkUserName(username);
    }
}
